Platform Explorer / Nuxeo Platform LTS 2017 9.10

Extension point elasticSearchClient

Documentation

Extension point to define how to access the Elasticsearch cluster.

For the TransportClient protocol:

    <elasticSeachClient class="org.nuxeo.elasticsearch.client.ESTransportClientFactory">
        <option name="addressList">localhost:9300</option>
        <option name="clusterName">elasticsearch</option>
        <option name="clientTransportSniff">false</option>
        <option name="clientTransportIgnoreClusterName">false</option>
        <option name="clientTransportPingTimeout">5s</option>
        <option name="clientTransportNodesSamplerInterval">5s</option>
    </elasticSeachClient>

For a Rest client:

    <elasticSeachClient class="org.nuxeo.elasticsearch.client.ESRestClientFactory">
        <option name="addressList">localhost:9200</option>
    </elasticSeachClient>

Contribution Descriptors

  • Class: org.nuxeo.elasticsearch.config.ElasticSearchClientConfig

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-runtime-9.10.jar /Users/arnaud/Nuxeo/distrib/nuxeo-server-tomcat-9.10/nxserver/config/elasticsearch-config.xml
    <extension point="elasticSearchClient" target="org.nuxeo.elasticsearch.ElasticSearchComponent">
      <elasticSearchClient class="org.nuxeo.elasticsearch.client.ESTransportClientFactory">
        <option name="addressList"/>
        <option name="clusterName">nuxeoCluster</option>
        <option name="clientTransportSniff">false</option>
        <option name="clientTransportIgnoreClusterName">false</option>
        <option name="clientTransportPingTimeout">5s</option>
        <option name="clientTransportNodesSamplerInterval">5s</option>
      </elasticSearchClient>
      </extension>